<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="{$smarty.const.ADMIN_CSS_PATH}style.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript">
	function shows(v){
		if(v.value==0){
			document.getElementById('showsel').style.display='none';
		}else{
			document.getElementById('showsel').style.display='inline';
		}
	}
</script>
<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">权限管理</a></li>
    <li><a href="#">权限列表</a></li>
    <li><a href="#">添加权限</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    <div class="formtitle"><span>基本信息</span></div>
    <form action="{$smarty.const.__SELF__}" method="post">
    <ul class="forminfo">
    <li><label>权限编号</label><input name="id" id="id" type="text" class="dfinput" /><i></i></li>
    <li><label>权限名称</label><input name="name" id="name" type="text" class="dfinput" /><i></i></li>
    <li><label>权限等级</label><select class="select1" id="level" name="level" onchange="shows(this)">
					    <option selected="selected" value="0">顶级权限</option>
					    <option value="1">次顶级权限</option>
					</select>
    				<span id="showsel" style="display: none;">父级权限为：<select class="pid" id="pid" name="pid" >
					    <option selected="selected" value="0">请选择父级权限</option>
					    {foreach $authp as $k=>$v}
					    <option value="{$v.id}">{$v.name}</option>
					    {/foreach}
					</select></span></li>
    
    <li><label>控制器</label><input name="controller" id="controller" type="text" class="dfinput" /><i>大驼峰命名</i></li>
    <li><label>操作方法</label><input name="action" id="action" type="text" class="dfinput" /><i>全小写</i></li>
    <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认保存"/></li>
    </ul>
    </form>
    
    </div>
</body>
</html>
